<?php
declare (strict_types=1);

namespace app\admin\middleware;

use app\common\model\AclUser;

/**
 * 检测用户登录和节点权限
 */
class CheckAuth extends \ffhome\frame\middleware\CheckAuth
{
    protected function jumpNotNeedAuth($currentNode, $userId)
    {
        AclUser::updateLoginEveryday($userId);
    }

    protected function jump($currentNode, $userId)
    {
        AclUser::updateLoginEveryday($userId);
    }
}